<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<html>
<head>
<META HTTP-EQUIV="Pragma" CONTENT="no-cache"> 
<META HTTP-EQUIV="Cache-Control" CONTENT="no-cache"> 
<META HTTP-EQUIV="Expires" CONTENT="0"> 
<META name="save" content="history"> 
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<!--<link rel="stylesheet" type="text/css" media="screen" href="css/screen.css" />
-->
<link rel="stylesheet" type="text/css" media="screen" href="css/milk.css" />
<script src="js/jquery-1.5.js" type="text/javascript"></script>
<script src="js/jquery.validate.js" type="text/javascript"></script>
<script src="js/cmxforms.js" type="text/javascript"></script>
<script src="js/messages_cn.js" type="text/javascript"></script>
<script type="text/javascript">

$().ready(function() {
		var validator = $("#signupform").validate({
			rules: {
				username: "required",
				password:{
					required: true,
					number: true
				} 
			},
			errorPlacement: function(error, element) {
				if ( element.is(":radio") )
					error.appendTo( element.parent().next().next() );
				else if ( element.is(":checkbox") )
					error.appendTo ( element.next() );
				else
					error.appendTo( element.parent().next() );
			},
			success: function(label) {
				label.html("&nbsp;").addClass("checked");
			}
		});
		$("#download").click(function(){
			//$("#filepath").val("images/bg.gif");
			//alert($("#filepath").val());
			$("#signupform1").attr("action","fileDownload.action");
			$("#signupform1").submit();
		});
	//$("#signupform").validate();
});
</script>
<title>Insert title here</title>
</head>
<body>
<div>
<form class="cmxform" id="signupform" action="login.action" method="post">
	<table width="100%">
		<tr>
			<td width="50%"></td>
			<td colspan="2">用户登录</td>
		</tr>
		<tr>
			<td align="right" width="50%">用户名：</td>
			<td width="10%"><input type="text" name="username" id="username" minlength="2"></td>
			<td class="status"></td>
		</tr>
		<tr>
			<td align="right" width="50%">密&nbsp;&nbsp;&nbsp;&nbsp;码：</td>
			<td width="10%"><input type="text" name="password" id="password" minlength="2"></td>
			<td class="status"></td>
		</tr>
		<tr>
			<td></td>
			<td align="left" colspan="2">
				<input type="submit" value="登陆"></input>
				<input type="reset" value="重填"></input>
			</td>
		</tr>
	</table>
</form>
<form id="" action="fileUpload.action" method="post" enctype="multipart/form-data">
	<table width="100%">
		<tr>
			<td align="right" width="50%" style="padding-right:15px">
				<a href="" name="inputPath" id="download">下载</a>
			</td>
			<td align="left" colspan="2">
				<input type="file" name="upload"><input value="上传" type="submit" style="margin-left:5px"/>
			</td>
		</tr>
	</table>
</form>
<p style="padding-left: 50%"><a href="toinsert.action">马上注册</a></p>
<form id="signupform1" action="">
	<input type="hidden" id="filepath">
</form>
</div>
</body>
</html>